package com.lhh.springcloud.service.imp;

import com.lhh.entity.Member;
import com.lhh.springcloud.mapper.MemberMapper;
import com.lhh.springcloud.service.MemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@Service
public class MemberServiceImp implements MemberService {
    @Resource
    private MemberMapper memberMapper;
    @Override
    public Member queryMemberById(Long id) {
        return memberMapper.selectMemberById(id);
    }

    @Override
    public int addMember(Member member) {
        return memberMapper.addMember(member);
    }
}
